﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Common.Enums
{
    public enum BusinessErrorCode
    {
  
        // 认证相关错误
        /// <summary>
        /// 该账号已被禁用
        /// </summary>
        ACCOUNT_DISABLED_ERROR = 308,

        /// <summary>
        /// 账号或密码错误
        /// </summary>
        ACCOUNT_ERROR = 309,

        /// <summary>
        /// 账号或密码为空
        /// </summary>
        ACCOUNT_NOT_NULL = 310,

        /// <summary>
        /// 密码不能为空
        /// </summary>
        PASSWORD_NOT_NULL = 311,

        /// <summary>
        /// 手机号不能为空
        /// </summary>
        PHONE_NOT_NULL = 312,

        /// <summary>
        /// 昵称不能为空
        /// </summary>
        NICKNAME_NOT_NULL = 313,

        /// <summary>
        /// 账号已存在
        /// </summary>
        ACCOUNT_EXISTS = 314,

        /// <summary>
        /// 手机号已存在
        /// </summary>
        PHONE_EXISTS = 315,

        /// <summary>
        /// 注册失败，请稍后重试
        /// </summary>
        REGISTRATION_FAILED = 316,

        /// <summary>
        /// 验证码为空
        /// </summary>
        VERIFICATION_CODE_NOT_NULL = 317,

        /// <summary>
        /// 验证码无效或已过期
        /// </summary>
        INVALID_VERIFICATION_CODE = 318,

        // HTTP 状态对应的业务错误
        /// <summary>
        /// 请求参数错误
        /// </summary>
        INVALID_REQUEST = 400,

        /// <summary>
        /// 无访问权限
        /// </summary>
        ACCESS_DENIED = 403,

        /// <summary>
        /// 账号不存在
        /// </summary>
        ACCOUNT_NOT_EXISTS = 404,

        /// <summary>
        /// 该角色已绑定用户，删除失败
        /// </summary>
        ROLE_USER_BOUND = 409,

        /// <summary>
        /// 服务器内部错误
        /// </summary>
        INTERNAL_SERVER_ERROR = 500
    }

}
